<template>
	<!-- 商品信息 -->
	<view class="service-wrap" @click="change">
		<view class="emption">
			<view class="emption-fh">规格</view>
			<view class="emption-zp">请选择规格数量</view>
			<uni-icons type="forward" size="13" color="#ccc" style="margin-right: 5rpx;" class="emption-arrow"></uni-icons>
		</view>
		<view class="emption">
			<view class="emption-fh">发货</view>
			<view class="emption-zp">品牌仓库 丨 平台承担</view>
		</view>
		<view class="emption">
			<view class="emption-fh">库存</view>
			<view class="emption-zp">仅剩：<text class="text">33件</text><text class="text2">每人限兑一件</text></view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"product-info",
		data() {
			return {
				
			};
		},
		methods:{
			change(){
				this.$emit('change')
			}
		}
	}
</script>

<style lang="scss" scoped>
	.service-wrap{
		width: 100%;
		background-color: $uni-text-color-inverse;
		margin-bottom: 20rpx;
		font-size: $uni-font-size-sm;
		.emption{
			width: 100%;
			height: 50px;
			display: flex;
			align-items: center;
			position: relative;
			justify-content: space-between;
			.emption-arrow{
				position: absolute;
				right: 20rpx;
			}
			.emption-fh{
				width: 110rpx;
				text-align: center;
				color: $uni-text-color-grey;
			}
			.emption-zp{
				flex: 1;
				height: 100%;
				line-height: 50px;
				border-bottom: 1rpx solid #e5e5e5;
				.text{
					color: $theme-color;
				}
				.text2{
					color: #fff;
					background-color: $theme-color;
					padding: 0 15rpx;
					border-radius: 5rpx;
					margin: 0 20rpx;
				}
			}
		}
	}
</style>